<?php
require_once "../config/app.config.php";
$entityFieldBaseArray = array(
						"name" => $_POST['name'],
						"entityID" => $_POST['entityId'],
						"fieldType" => $_POST['selectedType'],
						"dbField" => $_POST['db_field'],
						"gridHeader" => $_POST['grid_header'],
						"formLocation" => $_POST['form_location'],
						"gridLocation" => $_POST['grid_location']
						);
$entityField = new EntityField(0);
$test = $entityField -> CreateEntityFieldBase($entityFieldBaseArray);
?>

{
	/*
	<?
	vp($test);
	?>
	*/
    success: false,
    msg: "Entity saved successfuly!"
}